package com.bbs.service;

import com.bbs.entity.Page;
import com.bbs.entity.Post;

import java.util.List;

/**
 * 发帖信息业务接口
 */
public interface PostService {

    Page<Post> findByPage(int curPage,String order);

    Post getPostByPid(int pid);

    boolean getLikeStatus(int pid, Integer sessionUid);

    /**
     * 发帖
     * @param post
     * @return
     */
    int publishPost(Post post);

    List<Post> getPostList(int uid);
}
